package com.zhentao.controller;

import com.zhentao.model.common.buiness.dto.OrderDto;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.MaOrdersService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 王越潇
 * @version 1.0
 * @Date 2024/9/19 10:13
 * @Type
 */
@RestController
@RequestMapping("ma/orders")
@Api(tags = "maOrders",description = "管理端订单管理接口")
public class MaOrdersController {
    @Resource
    private MaOrdersService maOrdersService;
    @ApiOperation("管理端：订单列表")
    @PostMapping("findOrders")
    public ResponseResult findOrders(@RequestBody OrderDto orderDto){
        return maOrdersService.findOrders(orderDto);
    }
}


